package com.example.tianling.common.vo;

import com.example.tianling.entity.BookEntity;
import com.example.tianling.entity.RoomEntity;
import com.example.tianling.entity.RoomUserEntity;
import lombok.Data;

import java.util.HashSet;
import java.util.Set;

@Data
public class RoomVo {
    private RoomEntity roomInfo;
    private Set<RoomUserEntity> roomUsers = new HashSet<>();
    private BookEntity book;
    public void addRoomUser(RoomUserEntity roomUser) {
        this.roomUsers.add(roomUser);
    }
}
